package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 公司职位
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("company_position")
public class CompanyPosition extends Model<CompanyPosition> implements Serializable {


    /**
     * 岗位ID
     */
    @TableId(value = "company_position_id", type = IdType.AUTO)
    private Integer companyPositionId;

    /**
     * 岗位编码
     */
    @TableField("company_position_num")
    private String companyPositionNum;

    /**
     * 岗位名称
     */
    @TableField("company_position_name")
    private String companyPositionName;

    /**
     * 岗位所属公司ID
     */
    @TableField("company_position_company_id")
    private Integer companyPositionCompanyId;

    @TableField(exist = false)
    private Company company;

    public Company getCompany() {
        return company;
    }

    public CompanyPosition setCompany(Company company) {
        this.company = company;
        return this;
    }

    /**
     * 岗位所属部门ID
     */
    @TableField("company_position_department_id")
    private Integer companyPositionDepartmentId;

    public Integer getCompanyPositionId() {
        return companyPositionId;
    }

    public CompanyPosition setCompanyPositionId(Integer companyPositionId) {
        this.companyPositionId = companyPositionId;
        return this;
    }

    public String getCompanyPositionNum() {
        return companyPositionNum;
    }

    public CompanyPosition setCompanyPositionNum(String companyPositionNum) {
        this.companyPositionNum = companyPositionNum;
        return this;
    }

    public String getCompanyPositionName() {
        return companyPositionName;
    }

    public CompanyPosition setCompanyPositionName(String companyPositionName) {
        this.companyPositionName = companyPositionName;
        return this;
    }

    public Integer getCompanyPositionCompanyId() {
        return companyPositionCompanyId;
    }

    public CompanyPosition setCompanyPositionCompanyId(Integer companyPositionCompanyId) {
        this.companyPositionCompanyId = companyPositionCompanyId;
        return this;
    }

    public Integer getCompanyPositionDepartmentId() {
        return companyPositionDepartmentId;
    }

    public CompanyPosition setCompanyPositionDepartmentId(Integer companyPositionDepartmentId) {
        this.companyPositionDepartmentId = companyPositionDepartmentId;
        return this;
    }

    @Override
    public String toString() {
        return "CompanyPosition{" +
                "companyPositionId=" + companyPositionId +
                ", companyPositionNum=" + companyPositionNum +
                ", companyPositionName=" + companyPositionName +
                ", companyPositionCompanyId=" + companyPositionCompanyId +
                ", companyPositionDepartmentId=" + companyPositionDepartmentId +
                "}";
    }
}
